package com.qen.pinyin

import cn.hutool.core.lang.Console
import cn.hutool.extra.pinyin.PinyinUtil
import cn.hutool.extra.pinyin.engine.pinyin4j.Pinyin4jEngine

fun main() {
    val pinyin = PinyinUtil.getPinyin("你好"," ")
    Console.log(pinyin)

    val result = PinyinUtil.getFirstLetter("H是第一个",", ")
    Console.log(result)

    val engine = Pinyin4jEngine()

    val py = engine.getPinyin("你好h"," ")
    Console.log(py)
}